import React, {Component} from 'react';
import './header.less'

class Header extends Component {
    goBack = () => {
        window.history.go(-1);
    };

    render() {
        return (
            <header className="app-header">
                <span className="arrow-left" onClick={this.goBack}></span>
                <span className="title">{this.props.title}</span>
            </header>
        );
    }
}

export default Header;
